<?php

session_start();

try {
    session_destroy();
} catch (Exception $e) {
    echo "Exception destroying session !" . $e . getMessage();
}
header("location: login.php");
?>